package com.tonypy.mqtt.mqttdemo.mqtt;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/***
 * @descirption mqtt协议实体
 * @author tonypy
 * @date 2019/05/23
 * @version v0.0.1
 */
@Data
@Component
@ConfigurationProperties(prefix = "spring.mqtt")
public class MqttProperties {
    private String username;
    private String password;
    private String urls;
    private String clientId;
    private int completionTimeout ;   //连接超时
    private List<String> topics ;
    private List<Integer> qosValues;
    private int keepaAliveInterval;
    private int connectTimeout;
    private String topic;
    private int port;
}
